package com.yx.fx.log.web.model.update;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author 杨智杰
 * @date 2021/8/11 13:34
 */
@Data
@Accessors(chain = true)
public class UpdateLogger {

    @NotNull
    @ApiModelProperty(value = "id", required = true)
    private Long id;

    @ApiModelProperty(value = "请求方式")
    private String method;

    @ApiModelProperty(value = "请求路径")
    private String requestURI;

    @ApiModelProperty(value = "请求参数")
    private String queryString;

    @ApiModelProperty(value = "请求body")
    private String requestBody;

    @ApiModelProperty(value = "响应body")
    private String responseBody;

    @ApiModelProperty(value = "客户端主机名或IP")
    private String remoteHost;

    @ApiModelProperty(value = "请求协议类型")
    private String scheme;

    @ApiModelProperty(value = "请求协议类型以及版本")
    private String protocol;

    @ApiModelProperty(value = "请求概略信息")
    private String requestURL;

    @ApiModelProperty(value = "请求头信息")
    private String headers;

}
